package com.ming_za.odupdaterserver.core.sqlite.mapper;

import com.ming_za.odupdaterserver.core.sqlite.domain.Res;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 28365
* @description 针对表【res】的数据库操作Mapper
* @createDate 2025-01-04 11:26:09
* @Entity com.ming_za.odupdaterserver.core.sqlite.domain.PreUpdate
*/
public interface ResMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Res record);

    int insertSelective(Res record);

    Res selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Res record);

    int updateByPrimaryKey(Res record);

    int insertAll(List<Res> records);

    int updateAll(List<Res> records);

    int deleteAll(List<Long> ids);

    //============

    int updateLabel(@Param("resId") long resId,@Param("label") long label);

    List<Res> selectAll();

    List<Res> selectRes(@Param("ids") Long[] ids);

    List<Res> getResRelatedToLabel(long label);

}
